﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CGT.OP.Models
{
    public class MenuInfo
    {
        public string MenuName { get; set; }

        public int MenuID { get; set; }

        public string MenuUrl { get; set; }

        public List<ChildMenu> ChildMenu { get; set; }
    }

    public class ChildMenu
    {
        public string MenuName { get; set; }

        public int MenuID { get; set; }

        public string MenuUrl { get; set; }
    }

    public class MenuModel
    {

        ///<summary>
        ///菜单标题，不超过16个字节，子菜单不超过60个字节
        ///</summary>
        public string txtName
        {
            get; set;
        }

        ///<summary>
        ///类型,1、click   2、view   4、scancode_waitmsg   5、pic_sysphoto   6、pic_photo_or_album   7、pic_weixin   8、location_select   9、media_id   10、view_limited
        ///</summary>
        public int selType
        {
            get; set;
        }

        ///<summary>
        ///父级ID
        ///</summary>
        public int selParentId
        {
            get; set;
        }

        ///<summary>
        ///菜单KEY值，用于消息接口推送
        ///</summary>
        public string txtMenuKey
        {
            get; set;
        }

        ///<summary>
        ///小程序的appid,miniprogram类型必须
        ///</summary>
        public string txtAppId
        {
            get; set;
        }

        ///<summary>
        ///小程序的页面路径,miniprogram类型必须
        ///</summary>
        public string txtMenuPagePath
        {
            get; set;
        }

        ///<summary>
        ///网页 链接，用户点击菜单可打开链接，不超过1024字节。 type为miniprogram时，不支持小程序的老版本客户端将打开本url
        ///</summary>
        public string txtURL
        {
            get; set;
        }

        /// <summary>
        /// ID
        /// </summary>
        public int MenuID
        {
            get;set;
        }

    }

}